
'''
@名称：猜数字
@作者：Fida1214
@日期：2025/3/12
'''

print("""
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
                    游戏时间到——————快来玩游戏吧！
                    今天的游戏是——————猜数字！
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
                    @游戏名称：游戏——猜数字
                    @作者：Fida1214
                    @日期：2025/3/12
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
    """)

level = int(input("请输入你的CR（挑战等级）：1 = fresh；2 = medium；3 = difficult。"))
if level == 1:
    level = 20
elif level == 2:
    level = 50
elif level == 3:
    level = 100

import random
print("There is a number between 1 and 100,please enter the number")
random_number = random.randint(1, level)
while True:
    input_number = int(input("Please input your number: "))
    if input_number == random_number:
        print("You win!")
        break
    elif input_number > random_number:
        print("You lose!It is too high!")
    elif input_number < random_number:
        print("You lose!It is too low!")
